from .views import AreasInfoView
from django.conf.urls import url,include

urlpatterns = [

]
# 视图集的url是自动生成
from rest_framework.routers import DefaultRouter

#创建实例对象
router = DefaultRouter()
#设置正则规则
router.register(r'infos',AreasInfoView,base_name='aaaa')
#追加到 urlpatterns
urlpatterns += router.urls